package com.oppo.dao;

import com.oppo.bean.UserBean;
import com.oppo.db.BasicDataOperation;
import com.oppo.tools.MyTools;

public class UserUpDataDao {
	
public int Data(UserBean one) {
	String sql="update user_t\r\n" + 
			"set user_psw=?\r\n" + 
			"where user_id=?";
	int list=MyTools.getNewInstance(BasicDataOperation.class).updateData(sql, one.getUser_psw(),one.getUser_id());
	return list;
}

public int DataName(UserBean one) {
	String sql="update user_t\r\n" + 
			"set USER_NAME=?\r\n" + 
			"where user_id=?";
	int list=MyTools.getNewInstance(BasicDataOperation.class).updateData(sql, one.getUser_name(),one.getUser_id());
	return list;
}

}
